package com.applet.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author “XuShao”
 * @date 2024/12/16 18:08
 * @description
 */
@Data
@Schema(title = "活动详情VO")
public class ActivityDetailsVO implements Serializable {

    @Schema(name = "添加者")
    private String userId; //添加者

    @Schema(name = "标题")
    private String title; //标题

    @Schema(name = "描述")
    private String description; //描述

    @Schema(name = "活动地点")
    private String place; //活动地点

    @Schema(name = "参与人数上限")
    private Integer numberOfPeopleUpperLimit; //参与人数上限

    @Schema(name = "当前参与人数")
    private Integer numberOfParticipants; //当前参与人数

    @Schema(name = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GHT+8")
    private LocalDateTime beginTime; //开始时间

    @Schema(name = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GHT+8")
    private LocalDateTime endTime; //结束时间

    @Schema(name = "活动状态")
    private Integer state;// 活动状态
}
